/* eslint-disable @typescript-eslint/prefer-for-of */
function* number() {
  const arr = Array.from({
    length: 10,
  }).map((_, index) => 10 - index);
  for (let i = 0; i < arr.length; i++) {
    yield arr[i];
  }
}

// const genNumber = number().toArray();
// console.log(genNumber);
